//
// Created by Administrator on 2020/10/14.
//

#ifndef O5G_SRC_O5GUE_INCLUDE_UEDEF_H_
#define O5G_SRC_O5GUE_INCLUDE_UEDEF_H_

#include "../../../lib/csp/include/cspApi.h"
#include "../../ccore/misc/include/misc.h"
#include "../../ccore/include/commDef.h"
#include "../../ccore/tables/include/tables.h"

typedef struct UeInstContext
{
    uint32_t ueInstIdx;

    /* TOML配置开始 */
    uint32_t inUse;
    /* TOML配置结束 */

    S_VarRingBuffer *pL2L1CpMsgQue;
    S_VarRingBuffer *pL1L2CpMsgQue;
    S_VarRingBuffer *pL2L1UpMsgQue;
    S_VarRingBuffer *pL1L2UpMsgQue;

} S_UeInstContext;

typedef struct UeContext
{
    E_AppType appType;
    char *configFilePath;

    uint32_t ueInstNum;
    S_UeInstContext ueInstContext[UE_UE_INST_NUM_MAX];
} S_UeContext;

extern S_UeContext* gpUeContext;

#endif //O5G_SRC_O5GUE_INCLUDE_UEDEF_H_
